package com.yunji.product.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunji.common.annotation.Excel;
import com.yunji.common.base.BaseDelFlagDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

;import java.io.Serializable;

/**
 * @Package com.yunji.product.domain
 * FileName:	ProductType.java
 * Copyright:	Copyright © 2024 云集互联 All Rights Reserved
 * Company:		云集互联
 * @version: 1.0
 * @since: JDK 1.8.0_202
 * Create at:   2024-04-01 01:38:09
 * Description:
 * 商品类型信息
 * Modification History:
 * Author					Date						Version			Description
 * --------------------------------------------------------------------------------
 * HuaAo				2024-04-01 01:38:09			1.0				1.0 Version
 */
@TableName("product_type")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductTypeDO extends BaseDelFlagDO implements Serializable {
    private static final long serialVersionUID = -165585323611501101L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @Excel(name = "商品类型", width = 15)
    @ApiModelProperty("商品类型")
    @Length(message = "商品类型不能超过{max}个字符", max = 10)
    private String name;

}
